Skip to content

Start tests as they're discovered - #186

Open
robinson96 wants to merge 6 commits into
mainfrom
tmp/for/github
Open

Start tests as they're discovered#186
robinson96 wants to merge 6 commits into
mainfrom
tmp/for/github

Conversation

@robinson96

Copy link
Copy Markdown
Collaborator

Summary

Adds ATS support needed for streaming testcase discovery from application
drivers

Changes

Add AtsManager.core(stream=True) as the ATS-owned streaming-discovery mode.

Add ats.cwd.chdir() to serialize process cwd changes so discovery can run
on a worker thread in a thread safe way.

Use the cwd helper around ATS input sourcing and global pre/post-run scripts.

Add AtsManager.add_test_defined_hook(),
AtsManager.remove_test_defined_hook(), and AtsManager.test_defined().

Add a default StandardScheduler.addInteractiveTests() incremental-load hook.

@robinson96
robinson96 requested review from ryanq4 and stephdempsey July 9, 2026 21:53
@robinson96 robinson96 self-assigned this Jul 9, 2026
@ryanq4

ryanq4 commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

The default core(stream=False) behavior works for me.

However, when I tried to run an ats executable with stream set to True through the command line it did not run any of the tests.
In my case, I am trying:
ats --numNodes 2 --allInteractive --npMax=112 --continueFreq=15 --timelimit 120m --okInvalid --keep -e <executable> Tests.ats

SYS_TYPE: toss_4_x86_64_ib
MACHINE_TYPE slurm36
BATCH_TYPE None
Machine description:  SlurmProcessorScheduled: 2 nodes, 112 processors per node.
No batch facility found.
------------------ Input complete ------------------
No tests found.
=================================================
// proceeds to INIT every test
FAILED:  0
PASSED:   0
NOTRUN:   2874

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants